package yto.freemarker.grafana_prometheus_boot.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import yto.freemarker.grafana_prometheus_boot.api.Result;

@Slf4j
@RequestMapping("user")
@RestController
public class UserController {

    @ResponseBody
    @RequestMapping(method = RequestMethod.GET, path = "insert")
    public Result insert() {
        log.info("insert");
        return Result.instance(Result.ResultType.success);
    }
}